def read_file(file_path):
    list=[]
    with open(file_path,"r",encoding="utf-8") as file:
        for line in file:
            list.append(line.strip())
        return list
file_path='example.txt'
print(read_file(file_path))